import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import abc from '@/components/abc'
import Index from '@/components/Index'
import ServiceList from '@/components/ServiceList'
import Trace from '@/components/Trace'
import Reg from '@/components/Reg'
import Money from '@/components/Money'
import Chat from '@/components/chat/Chat'
import FeedBack from '@/components/FeedBack'
import ResultView from '@/components/ResultView'
import SeeDoctor from '@/components/SeeDoctor'
import Login from '@/components/Login'
import Monitor from '@/components/Monitor'
import GetDrug from '@/components/GetDrug'
import SysInfo from '@/components/SysInfo'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      redirect: '/login',
      component: Index, 
      children: [
        {
          path: '/sev_lis', 
          name: '服务列表', 
          component: ServiceList, 
        }, 
        {
          path: '/trace', 
          name: '追溯', 
          component: Trace
        }, 
        {
          path: '/reg', 
          name: '挂号预约', 
          component: Reg
        }, 
        {
          path: '/money', 
          name: '缴费管理', 
          component: Money
        }, 
        {
          path: '/chat', 
          name: '在线问诊', 
          component: Chat
        }, 
        {
          path: '/feed_back', 
          name: '反馈', 
          component: FeedBack
        }, , 
        {
          path: '/result_view', 
          name: '结果', 
          component: ResultView
        }, 
        {
          path: '/see_doctor', 
          name: '就诊', 
          component: SeeDoctor
        },        
        {
          path: '/get_drug', 
          name: '取药', 
          component: GetDrug
        }, 
        {
          path: '/sys_info', 
          name: '系统通知', 
          component: SysInfo
        }, 
      ]
    }, 
    {
      path: '/abc',
      name: 'abc',
      component: abc
    }, 
    {
      path: '/login',
      name: '登录',
      component: Login
    }, 
    {
      path: '/monitor',
      name: '监控',
      component: Monitor
    }, 
  ]
})
